package com.sicaolong.partterndesign._04_bridge;

public class Goods {
    private Payment payment;

    public Goods(Payment payment) {
        this.payment = payment;
    }

    public void pay() {
        payment.pay();
    }
}
